<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>

  <body>
    <div id="app"></div>
    <script>
      let s1 = Symbol()
      let s2 = Symbol()
      console.log(s1 === s2)
      let s3 = Symbol("测试")
      let s4 = Symbol("测试")
      console.log(s3 === s4)
      console.log(typeof s4)

      let s5 = Symbol.for("测试")
      let s6 = Symbol.for()
      console.log(s5 === s6)
      let s7 = Symbol.keyFor(s6)
      console.log(s7)
    </script>
  </body>
</html>
